package com.course.repository;

import com.course.entity.Admin;
import org.springframework.data.jpa.repository.JpaRepository;

public interface AdminRepository extends JpaRepository<Admin, Integer> {
    Admin findAdminByAccount(String account);

    Admin findAdminByAccountAndPassword(String account, String password);
}
